export function checkAuth(){
	let user = JSON.parse(uni.getStorageSync('user') || '{}')
	console.log(user)
	if (!user?.accessToken) {
		uni.showModal({
			title: '提示',
			content: '您暂未登录，是否立即登录',
			success: function(res) {
				if (res.confirm) {
					uni.navigateTo({
						url: '/pages/public/login'
					})
					// return
				} else if (res.cancel) {
					return false
				}
			}
		});
	} else {
		return true
	}
}